using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using XFGameFramework;
public class 控制图片显隐 : MonoBehaviour
{
    public GameObject 游戏主场景BG;
    public GameObject 战斗场景BG;

    void Start()
    {
        EventManager.AddEvent(EventConst.战斗开始, () =>
        {
            游戏主场景BG.SetActive(false);
            战斗场景BG.SetActive(true);
        });
        EventManager.AddEvent(EventConst.战斗结束, () =>
        {
            战斗场景BG.SetActive(false);
            游戏主场景BG.SetActive(true);
        });
        
    }
    private void OnDestroy()
    {

    }
    void Update()
    {

    }
}
